package com.mypring.service;

import com.mypring.entity.Distance_AvgPrice;
import com.mypring.entity.Fang;
import com.mypring.entity.Layout_AvgPrice;
import com.mypring.mapper.FangMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class FangService {
    @Autowired
    private FangMapper fangMapper;

    public List<Fang> findRegion(){
        return fangMapper.findRegion();
    }

    public List<Distance_AvgPrice> findDistance_AvgPrice(){
        return fangMapper.findDistance_AvgPrice();
    }

    public List<Layout_AvgPrice> findLayout_AvgPrice(){
        return fangMapper.findLayout_AvgPrice();
    }
}